<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xml:lang="en" lang="en" xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <meta http-equiv="Content-Style-Type" content="text/css" />
    <!-- MOTW-DISABLED saved from url=(0014)about:internet -->
    <title>Link the orders subreport to the customers master report</title>
    <link rel="StyleSheet" href="css/subreport.css" type="text/css" media="all" />
    <link rel="StyleSheet" href="css/webworks.css" type="text/css" media="all" />
    <link rel="StyleSheet" href="webworks.css" type="text/css" media="all" />
    <script type="text/javascript" language="JavaScript1.2">
      <!--
        var  WebWorksRootPath = "";
      // -->
    </script>
  </head>
  <body>
    <div style="text-align: left;">
      <table cellspacing="0" summary="">
        <tr>
          <td>
            <a href="sub-TutT7CreateOrdersSubRpt.html"><img src="images/prev.gif" alt="Previous" border="0" /></a>
          </td>
          <td>
            <a href="sub-TutT9CreateOrdersSubRpt.html"><img src="images/next.gif" alt="Next" border="0" /></a>
          </td>
        </tr>
      </table>
    </div>
    <hr align="left" />
    <blockquote>
      <h3 class="N_TutorialTask">Task 8:&nbsp;&nbsp;<a name="307540">Link the orders subreport to the customers master report</a></h3>
      <p class="b_Body"><a name="307544">You link the orders subreport to the customers master report by binding the CustID parameter to the CUSTOMERNUMBER data set field in the customers report. Each time the customers report reaches a new customer row, the CustID parameter is updated with the new CUSTOMERNUMBER value. </a></p>
      <div class="N_n1_NumList1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n1_NumList1_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023Format">1&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n1_NumList1_inner"><a name="307521">Choose Layout to resume editing the report.</a></div>
            </td>
          </tr>
        </table>
      </div>
      <div class="N_n1_NumList1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n1_NumList1_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023Format">2&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n1_NumList1_inner"><a name="307522">Select the Orders table.</a></div>
            </td>
          </tr>
        </table>
      </div>
      <div class="N_n1_NumList1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n1_NumList1_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023Format">3&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n1_NumList1_inner"><a name="307523">In Property Editor, choose Binding.</a></div>
            </td>
          </tr>
        </table>
      </div>
      <div class="N_n1_NumList1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n1_NumList1_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023Format">4&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n1_NumList1_inner"><a name="307503">In the Binding page, choose Data Set Parameter Binding.</a></div>
            </td>
          </tr>
        </table>
      </div>
      <div class="N_i_Indent1"><a name="340342">Data Set Parameter Binding displays the CustID parameter, as shown in </a><a href="#307471" title="Link the orders subreport to the customers master report">Figure&nbsp;12-15</a>. Its value is set to the default, 103, which you specified when you created the data set parameter.</div>
      <p class="i2_Image2"><a name="219267"><img class="Default" src="images/datasetparambinding.png" style="display: inline; float: none; left: 0.0; top: 0.0" alt="Figure 12-15 Data Set Parameter Binding for the Orders table" /></a></p>
      <div class="fc2_FigCall2Title">
        <b class="Bold">Figure&nbsp;12-15&nbsp;&nbsp;</b><a name="307471">Data Set Parameter Binding for the Orders table</a></div>
      <div class="N_n1_NumList1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n1_NumList1_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023Format">5&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n1_NumList1_inner"><a name="307473">Change the parameter value to the CUSTOMERNUMBER field in the customers report.</a></div>
            </td>
          </tr>
        </table>
      </div>
      <div class="N_n2_NumList2_outer" style="margin-left: 14.1732pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n2_NumList2_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023FormatGray">1&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n2_NumList2_inner"><a name="307477">Select the parameter, then choose Edit. Edit data set parameter binding, shown in </a><a href="#284888" title="Link the orders subreport to the customers master report">Figure&nbsp;12-16</a>, prompts you to specify a new parameter value.</div>
            </td>
          </tr>
        </table>
      </div>
      <p class="i3_Image3"><a name="284871"><img class="Default" src="images/dsparambinding2.png" style="display: inline; float: none; left: 0.0; top: 0.0" alt="Figure 12-16 Edit data set parameter binding" /></a></p>
      <div class="fc3_FigCall3Title">
        <b class="Bold">Figure&nbsp;12-16&nbsp;&nbsp;</b><a name="284888">Edit data set parameter binding</a></div>
      <p class="N_si_ScanIcon"><a name="307578"><img class="Default" src="images/expressionbldrbutton.png" style="display: inline; float: none; left: 0.0; top: 0.0" alt="Expression Builder button" /></a></p>
      <div class="N_n2_NumList2_outer" style="margin-left: 14.1732pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n2_NumList2_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023FormatGray">2&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n2_NumList2_inner"><a name="307579">Choose the expression builder button that appears to the right of the Value field.</a></div>
            </td>
          </tr>
        </table>
      </div>
      <div class="N_n2_NumList2_outer" style="margin-left: 14.1732pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n2_NumList2_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023FormatGray">3&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n2_NumList2_inner"><a name="341064">In the expression builder, choose Available Column Bindings, choose List, then double-click CUSTOMERNUMBER. The expression builder displays the expression, row["CUSTOMERNUMBER"], as shown in </a><a href="#227152" title="Link the orders subreport to the customers master report">Figure&nbsp;12-17</a>.</div>
            </td>
          </tr>
        </table>
      </div>
      <p class="i3_Image3"><a name="187796"><img class="Default" src="images/oprpt_expbuilder..png" style="display: inline; float: none; left: 0.0; top: 0.0" alt="Figure 12-17 CUSTOMERNUMBER field in the expression builder" /></a></p>
      <div class="fc3_FigCall3Title">
        <b class="Bold">Figure&nbsp;12-17&nbsp;&nbsp;</b><a name="227152">CUSTOMERNUMBER field in the expression builder</a></div>
      <div class="N_i2_Indent2"><a name="187798">Choose OK to save the expression and close the expression builder.</a></div>
      <div class="N_n2_NumList2_outer" style="margin-left: 14.1732pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n2_NumList2_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023FormatGray">4&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n2_NumList2_inner"><a name="284905">In Edit data set parameter binding, choose OK to accept the new parameter value. Dataset Parameter Binding displays the new value of row["CUSTOMERNUMBER"] for the CustID parameter, as shown in </a><a href="#341363" title="Link the orders subreport to the customers master report">Figure&nbsp;12-18</a>.</div>
            </td>
          </tr>
        </table>
      </div>
      <p class="i3_Image3"><a name="341344"><img class="Default" src="images/dsparambindingupdated.png" style="display: inline; float: none; left: 0.0; top: 0.0" alt="Figure 12-18 Updated data set parameter binding" /></a></p>
      <div class="fc3_FigCall3Title">
        <b class="Bold">Figure&nbsp;12-18&nbsp;&nbsp;</b><a name="341363">Updated data set parameter binding</a></div>
      <div class="N_n1_NumList1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n1_NumList1_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023Format">6&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n1_NumList1_inner"><a name="222945">Choose OK to save the changed data set parameter binding.</a></div>
            </td>
          </tr>
        </table>
      </div>
      <div class="N_n1_NumList1_outer" style="margin-left: 0pt">
        <table border="0" cellspacing="0" cellpadding="0" summary="" role="presentation">
          <tr style="vertical-align: baseline">
            <td>
              <div class="N_n1_NumList1_inner" style="width: 14.1732pt; white-space: nowrap">
                <span class="zAuto_0023Format">7&nbsp;&nbsp;</span>
              </div>
            </td>
            <td width="100%">
              <div class="N_n1_NumList1_inner"><a name="187800">Preview the report. It should look like the one shown in </a><a href="#227160" title="Link the orders subreport to the customers master report">Figure&nbsp;12-19</a>. </div>
            </td>
          </tr>
        </table>
      </div>
      <p class="i2_Image2"><a name="187804"><img class="Default" src="images/oprpt_output3.png" style="display: inline; float: none; left: 0.0; top: 0.0" alt="Figure 12-19 Preview of the report shows correct orders data" /></a></p>
      <div class="fc2_FigCall2Title">
        <b class="Bold">Figure&nbsp;12-19&nbsp;&nbsp;</b><a name="227160">Preview of the report shows correct orders data</a></div>
      <div class="N_i_Indent1"><a name="187806">Now different order records appear for different customers. Not all customers have order records. To display only customers that have orders, you change the query for the customers report. This task is described later in </a><a href="sub-TutT11DisplayCustomersWithOrdersOrPayments.html#187880" title="Display only customers that have orders or payments">Task 11: “Display only customers that have orders or&nbsp;payments.”</a></div>
    </blockquote>
    <hr align="left" />
    <table align="right" summary="">
      <tr>
        <td class="WebWorks_Company_Name_Bottom">
          <a href="notices.html">(c) Copyright Actuate Corporation 2013</a>
        </td>
      </tr>
    </table>
  </body>
</html>